package cn.stylefeng.guns.sys.modular.tao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 优惠券领取记录表
 * </p>
 *
 * @author 
 * @since 2019-08-21
 */
@TableName("tao_coupon_lead")
public class CouponLead implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 优惠券ID
     */
    @TableField("coupon_id")
    private Integer couponId;

    /**
     * 领券人ID
     */
    @TableField("lead_userid")

    private Integer leadUserid;

    /**
     * 领取时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 生效时间
     */
    @TableField("begin_time")
    private String beginTime;

    /**
     * 失效时间
     */
    @TableField("end_time")
    private String endTime;

    /**
     * 状态【0：未使用 1：已使用 2：已过期】
     */
    @TableField("state")
    private Integer state;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCouponId() {
        return couponId;
    }

    public void setCouponId(Integer couponId) {
        this.couponId = couponId;
    }

    public Integer getLeadUserid() {
        return leadUserid;
    }

    public void setLeadUserid(Integer leadUserid) {
        this.leadUserid = leadUserid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "CouponLead{" +
        "id=" + id +
        ", couponId=" + couponId +
        ", leadUserid=" + leadUserid +
        ", createTime=" + createTime +
        ", beginTime=" + beginTime +
        ", endTime=" + endTime +
        ", state=" + state +
        "}";
    }
}
